﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Mindfor.Web.Data
{
	/// <summary>
	/// Class for widget data object.
	/// </summary>
	public class Widget : IdEntity
	{
		/// <summary>
		/// Gets or sets module name where to search for widget.
		/// </summary>
		public virtual string ModuleName { get; set; }

		/// <summary>
		/// Gets or sets widget name to search for.
		/// </summary>
		public virtual string WidgetName { get; set; }

		/// <summary>
		/// Gets or sets widget initialization parameter.
		/// </summary>
		public virtual string WidgetParam { get; set; }

		/// <summary>
		/// Gets or sets place for widget.
		/// </summary>
		public virtual string Place { get; set; }

		/// <summary>
		/// Gets or sets sort order.
		/// </summary>
		public virtual int Sort { get; set; }

		/// <summary>
		/// Gets or sets page for widget. If set, widget will appear only on this page.
		/// </summary>
		public virtual Page Page { get; set; }
	}
}
